package base.day07;

import javax.swing.*;
import javax.swing.border.StrokeBorder;

public class study5 {
    public static void main(String[] args) {
        JFrame jf = new JFrame();
        jf.setTitle("考勤查询");
        jf.setSize(400, 300);
        jf.setDefaultCloseOperation(3);
        jf.setLocationRelativeTo(null);
        jf.setAlwaysOnTop(true);
        jf.setLayout(null);

        //考情日期
        JLabel data = new JLabel("考勤日期");
        data.setBounds(50, 20, 100, 20);
        jf.add(data);
        //开始时间
        JLabel beginTime = new JLabel("开始时间");
        beginTime.setBounds(50, 70, 100, 20);
        jf.add(beginTime);
        //开始时间文本框
        JTextField timeField = new JTextField();
        timeField.setBounds(50, 100, 100, 20);
        jf.add(timeField);
        //结束时间
        JLabel stoptime = new JLabel("结束时间");
        stoptime.setBounds(250, 70, 100, 20);
        jf.add(stoptime);
        //结束时间文本框
        JTextField stopfield = new JTextField();
        stopfield.setBounds(250, 100, 100, 20);
        jf.add(stopfield);
        //确定按钮
        JButton okButton = new JButton("确定");
        okButton.setBounds(250, 180, 60, 20);
        jf.add(okButton);
        jf.setVisible(true);

    }
}
